<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=17;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.receiveperson.value=="")
   { alert("接收人不能为空！");
     document.save.receiveperson.focus();
     return (false);
   }
   if(document.save.content.value=="")
   { alert("内容不能为空！");
     document.save.content.focus();
     return (false);
   }   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=add&do=save&fileurl=sms">
	<input type="hidden" name="savetype" value="add" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">短消息发送</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 接收人：<? get_user_add_help()?></td>
      <td class="TableData">
        
	<?php
	  get_oa_member_public(2,"receiveperson","","+选择接收人",60,3)
	  ?>
    <tr>
      <td nowrap class="TableData">内容：<? get_user_add_help()?></td>
      <td class="TableData"><textarea name="content" cols="70" rows="8" class="InputAreaStyle"></textarea> 
      </td>
    </tr>
   <tr>
      <td nowrap class="TableContent"> 附件文档：</td>
      <td class="TableData">

 <input type="text" name="appendix" class="BigInput" size="40" value="" /><a href="#" onClick="window.open ('admin.php?ac=uploadadd&fileurl=public&name=appendix', 'newwindow', 'height=200, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')">+附件上传</a>
      </td>
    </tr>
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">
     <input type="button" name="Submit" value="发送短消息" class="BigButton" onclick="sendForm();">
      </td>
    </tr>
  </table>
</form>
</div>
</div>

 
</body>
</html>
